package controllers;

import play.data.validation.Required;
import play.mvc.Controller;

public class Application extends Controller {

	public static void index() {
		render();
	}

	public static void sayHello(@Required String myName) {
		if (validation.hasErrors()) {
			flash.error("Oops");
			index();
		}
		render(myName);
	}
}